package com.example.weibo_app.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "评论实体类")
public class Comment {
    @ApiModelProperty(value = "评论ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "文章ID", example = "1")
    private Integer articleId;

    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer userId;

    @ApiModelProperty(value = "评论内容", example = "这是评论内容")
    private String content;

    @ApiModelProperty(value = "评论时间", example = "2024-12-01")
    private LocalDateTime createdTime;
}
